package kuanshu.controller;



import kuanshu.bean.FangDongXinXi;
import kuanshu.bean.Hetong;
import kuanshu.mapper.HetongMapper;
import kuanshu.util.JsonResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;
@CrossOrigin("*")
@RestController
@RequestMapping("/hetong")
public class HetongController {


    @PostMapping("/tianjia")
    public JsonResult tianjia(Hetong hetong) {
        HetongMapper.tianjia(hetong);
        JsonResult result = new JsonResult(true, 200, "success", "");
        return result;
    }

}